<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<!-- BEGIN HEAD -->

<head>

    <meta charset="utf-8"/>

    <title>合同基础信息设置</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta th:content="${session.authorities}" id="authority"/>

    <link href="/media/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="/media/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
    <link href="/media/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="media/css/style-metro.css" rel="stylesheet" type="text/css"/>
    <link href="media/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="media/css/style-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="media/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>
    <link rel="stylesheet" type="text/css" href="/media/css/select2_metro.css"/>

    <link rel="stylesheet" href="/media/css/DT_bootstrap.css"/>
    <link rel="stylesheet" href="/media/ztree/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="/media/css/bootstrap-fileupload.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/jquery.gritter.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/chosen.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/select2_metro.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/jquery.tagsinput.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/clockface.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/bootstrap-wysihtml5.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/datepicker.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/timepicker.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/colorpicker.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/bootstrap-toggle-buttons.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/daterangepicker.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/datetimepicker.css"/>
    <link rel="stylesheet" type="text/css" href="/media/css/multi-select-metro.css"/>
    <link href="media/css/bootstrap-modal.css" rel="stylesheet" type="text/css"/>

    <link rel="shortcut icon" href="/media/image/favicon.ico"/>
    <style type="text/css">
        #tab_3_2 li.active {
            border-left: 1px solid #ddd;
            border-top: 3px solid #d12610;
            margin-top: 0;
            position: relative;
        }
        .radio {
            min-height: 0px;
        }

        .radio input[type="radio"] {
            margin-left: -15px;
        }
    </style>
</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="page-header-fixed">

<!-- BEGIN HEADER -->
<div th:replace="common/header :: header"></div>
<!-- END HEADER -->

<!-- BEGIN CONTAINER -->

<div class="page-container row-fluid">

    <!-- BEGIN SIDEBAR -->
    <div th:replace="common/sider :: sider"></div>
    <!-- END SIDEBAR -->
    <div class="page-content">
        <!-- BEGIN PAGE CONTAINER-->
        <div class="container-fluid">

            <div class="row-fluid">
                <div class="span12">
                    <h3 class="page-title">
                        合同基础信息设置
                    </h3>
                </div>
            </div>
            <div class="row-fluid ">
                <div class="span12">
                    <div class="portlet box green">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="icon-reorder"></i>基础信息设置
                            </div>
                            <div class="tools">
                                <a href="javascript:;" class="collapse"></a> <a
                                    href="#portlet-config" data-toggle="modal" class="config"></a>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <div class="row-fluid">
                                <div class="span12">

                                    <!--BEGIN TABS-->
                                    <div class="tabbable tabbable-custom tabs-left">
                                        <ul class="nav nav-tabs tabs-left">
                                            <li class="active"><a href="#tab_3_1" data-toggle="tab">合同套餐设置</a></li>
                                            <li><a href="#tab_3_2" data-toggle="tab">支付方式设置</a></li>
                                            <li><a href="#tab_3_3" data-toggle="tab" sec:authorize="hasAuthority('PERMISSION_MEMBER_CARD_TYPE')">会员卡类型设置</a></li>
                                            <li><a href="#tab_3_4" data-toggle="tab" sec:authorize="hasAuthority('PERMISSION_SMALL_TICKET')">资费小票设置</a></li>
                                            <li><a href="#tab_3_5" data-toggle="tab">合同字段设置</a></li>
                                            <li><a href="#tab_3_6" data-toggle="tab" sec:authorize="hasAuthority('PERMISSION_CONTRACT_TEMPLATE')">合同模板设置</a></li>
                                        </ul>
                                        <div class="tab-content">
                                            <div class="tab-pane active" id="tab_3_1">

                                                <div class="row-fluid" sec:authorize="hasAuthority('PERMISSION_CONTRACT_BASIC_INFO_ADD')">
                                                    <div class="span12 form">
                                                        <form class="form-horizontal"
                                                              onsubmit="return false;" id="contract_package_form">
                                                            <input type="reset" style="display: none;"/>
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">合同套餐名称</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="contractPackageName"
                                                                                   name="contractPackageName"> <span
                                                                                class="help-inline" style="color: red;">*</span>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span3">套餐类型 </label>
                                                                        <div class="controls span8" style="padding-left: 10px;">
                                                                            <label class="radio">
                                                                                <input type="radio" name="packageType"
                                                                                       value="1" checked/>
                                                                                课程套餐
                                                                            </label>
                                                                            <label class="radio">
                                                                                <input type="radio" name="packageType"
                                                                                       value="2"/>
                                                                                托班套餐
                                                                            </label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="span1">
                                                                    <div class="btn-group"
                                                                         sec:authorize="hasAuthority('PERMISSION_ROLE_ADD')">
                                                                        <button class="btn green"
                                                                                id="btn_contractpackage_add">
                                                                            添加 <i class="icon-plus"></i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">价格</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="packagePrice"
                                                                                   name="packagePrice">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">课时数</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="lessonCount" name="lessonCount">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">序号</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="packageOrder"
                                                                                   name="packageOrder">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">备注</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="packageRemark"
                                                                                   name="packageRemark">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <!--/row-->
                                                        </form>
                                                    </div>
                                                </div>
                                                <div class="row-fluid">
                                                    <div class="span12">
                                                        <!-- BEGIN EXAMPLE TABLE PORTLET-->
                                                        <div class="portlet box blue">

                                                            <div class="portlet-title">

                                                                <div class="caption">
                                                                    <i class="icon-globe"></i>合同套餐信息
                                                                </div>
                                                            </div>
                                                            <div class="portlet-body">
                                                                <table
                                                                        class="table table-striped table-bordered table-hover table-full-width"
                                                                        id="table">
                                                                    <thead>
                                                                    <tr>
                                                                        <th>合同套餐名称</th>
                                                                        <th>套餐类型</th>
                                                                        <th>课时数</th>
                                                                        <th>价格</th>
                                                                        <th>序号</th>
                                                                        <th>备注</th>
                                                                        <th>操作</th>
                                                                    </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <!-- END EXAMPLE TABLE PORTLET-->

                                                    </div>

                                                </div>

                                            </div>
                                            <div class="tab-pane" id="tab_3_2">
                                                <div class="row-fluid" sec:authorize="hasAuthority('PERMISSION_PAYWAY_ADD')" >
                                                    <div class="span12 form">
                                                        <form class="form-horizontal"
                                                              onsubmit="return false;" id="payway_form">
                                                            <input type="reset" style="display: none;"/>
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">参数</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="payWay" name="payWay"> <span
                                                                                class="help-inline" style="color: red;">*</span>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">描述</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="paywayRemark"
                                                                                   name="paywayRemark">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span1">
                                                                    <div class="btn-group">
                                                                        <button class="btn green" id="btn_payway_add">
                                                                            添加 <i class="icon-plus"></i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <!--/row-->
                                                        </form>
                                                    </div>
                                                </div>

                                                <div class="row-fluid">
                                                    <div class="span12">
                                                        <!-- BEGIN EXAMPLE TABLE PORTLET-->
                                                        <div class="portlet box blue">

                                                            <div class="portlet-title">

                                                                <div class="caption">
                                                                    <i class="icon-globe"></i>支付方式信息
                                                                </div>
                                                            </div>
                                                            <div class="portlet-body">
                                                                <table
                                                                        class="table table-striped table-bordered table-hover table-full-width"
                                                                        id="paywaytable">
                                                                    <thead>
                                                                    <tr>
                                                                        <th>参数</th>
                                                                        <th>描述</th>
                                                                        <th>操作</th>
                                                                    </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <!-- END EXAMPLE TABLE PORTLET-->

                                                    </div>

                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_3_3" sec:authorize="hasAuthority('PERMISSION_MEMBER_CARD_TYPE')">
                                                <div class="row-fluid" sec:authorize="hasAuthority('PERMISSION_MEMBER_CARD_TYPE_ADD')">
                                                    <div class="span12 form">
                                                        <form class="form-horizontal" id="membercardtype_form"
                                                              onsubmit="return false;">
                                                            <input type="reset" style="display: none;"/>
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">类型名称</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="typeName" name="typeName"> <span
                                                                                class="help-inline" style="color: red;">*</span>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">商城购物折扣</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="typeDiscount"
                                                                                   name="typeDiscount"> <span
                                                                                class="help-inline" style="color: red;">*</span>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="span1">
                                                                    <div class="btn-group">
                                                                        <button class="btn green"
                                                                                id="btn_membercardtype_add">
                                                                            添加 <i class="icon-plus"></i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">排序</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="typeOrder" name="typeOrder">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">备注</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="typeRemark" name="typeRemark">
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <!--/row-->
                                                        </form>
                                                    </div>
                                                </div>
                                                <div class="row-fluid">
                                                    <div class="span12">
                                                        <!-- BEGIN EXAMPLE TABLE PORTLET-->
                                                        <div class="portlet box blue">

                                                            <div class="portlet-title">

                                                                <div class="caption">
                                                                    <i class="icon-globe"></i>会员卡类型信息
                                                                </div>
                                                            </div>
                                                            <div class="portlet-body">
                                                                <table
                                                                        class="table table-striped table-bordered table-hover table-full-width"
                                                                        id="membercardtypetable">
                                                                    <thead>
                                                                    <tr>
                                                                        <th>类型名称</th>
                                                                        <th>商城购物折扣</th>
                                                                        <th>排序</th>
                                                                        <th>备注</th>
                                                                        <th>操作</th>
                                                                    </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <!-- END EXAMPLE TABLE PORTLET-->

                                                    </div>

                                                </div>

                                            </div>
                                            <div class="tab-pane" id="tab_3_4" sec:authorize="hasAuthority('PERMISSION_SMALL_TICKET')">
                                                <div class="row-fluid">
                                                    <div class="span12 form">
                                                        <form class="form-horizontal"
                                                              onsubmit="return false;">
                                                            <input type="hidden" id="arrange_hidden"/>
                                                            <div class="row-fluid">
                                                                <div class="span12">
                                                                    <div class="control-group">
                                                                        <label class="control-label span1">模版内容</label>
                                                                        <div class="controls span10">
                                                                                        <textarea class="m-wrap span11"
                                                                                                  name="content"
                                                                                                  rows="20"
                                                                                                  id="kindeditor_arrange"
                                                                                                  style="width:700px;height:500px;"> </textarea>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row-fluid">
                                                                <label class="control-label span12"
                                                                       style="text-align:left">可用参数:[会员卡号] [变动时间] [变动类型]
                                                                    [变动明细]</label>
                                                            </div>
                                                            <hr>
                                                            <div class="row-fluid" sec:authorize="hasAuthority('PERMISSION_SMALL_TICKET_EDIT')">
                                                                <div class="span1">
                                                                    <div class="btn-group">
                                                                        <button class="btn green"
                                                                                id="btn_arrange_template">
                                                                            保存 <i class="icon-plus"></i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                        </form>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_3_5">
                                                <div class="row-fluid">
                                                    <div class="span12 form">
                                                        <form class="form-horizontal" id="contract_field_form"
                                                              onsubmit="return false;">
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">字段名称</label>
                                                                        <div class="controls span8">
                                                                            <input type="text" class="m-wrap span10"
                                                                                   id="fieldName" name="fieldName">
                                                                            <span
                                                                                    class="help-inline"
                                                                                    style="color: red;">*</span>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">字段类型</label>
                                                                        <div class="controls span8">
                                                                            <select data-placeholder="选择字段类型"
                                                                                    class="chosen-with-diselect span6"
                                                                                    tabindex="-1" id="fieldType">
                                                                                <option value="1">文本</option>
                                                                                <option value="2">数字</option>
                                                                                <option value="3">日期</option>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="span1">
                                                                    <div class="btn-group"
                                                                         sec:authorize="hasAuthority('PERMISSION_ROLE_ADD')">
                                                                        <button class="btn green"
                                                                                id="btn_contractfield_add">
                                                                            添加 <i class="icon-plus"></i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row-fluid">
                                                                <div class="span4">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4">控件类型</label>
                                                                        <div class="controls span8">
                                                                            <select data-placeholder="选择控件类型"
                                                                                    class="chosen-with-diselect span6"
                                                                                    tabindex="-1" id="fieldComponent">
                                                                                <option value="1">输入框</option>
                                                                                <option value="2">下拉框</option>
                                                                                <option value="3">单选框</option>
                                                                                <option value="4">复选框</option>
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="span6">
                                                                    <div class="control-group">
                                                                        <label class="control-label span4"></label>
                                                                        <div class="controls span8">
                                                                            <label class="checkbox">
                                                                                <input type="checkbox" value="1"
                                                                                       id="isRequire"/> 是否必填
                                                                            </label>
                                                                            <label class="checkbox">
                                                                                <input type="checkbox" value="1"
                                                                                       id="isShow"/> 是否显示
                                                                            </label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <!--/row-->
                                                        </form>
                                                    </div>
                                                </div>
                                                <div class="row-fluid">
                                                    <div class="span12">
                                                        <!-- BEGIN EXAMPLE TABLE PORTLET-->
                                                        <div class="portlet box blue">

                                                            <div class="portlet-title">

                                                                <div class="caption">
                                                                    <i class="icon-globe"></i>合同字段信息
                                                                </div>
                                                            </div>
                                                            <div class="portlet-body">
                                                                <table
                                                                        class="table table-striped table-bordered table-hover table-full-width"
                                                                        id="contractfieldtable">
                                                                    <thead>
                                                                    <tr>
                                                                        <th>字段名称</th>
                                                                        <th>字段类型</th>
                                                                        <th>控件类型</th>
                                                                        <th>是否必填</th>
                                                                        <th>是否显示</th>
                                                                        <th>操作</th>
                                                                    </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <!-- END EXAMPLE TABLE PORTLET-->

                                                    </div>

                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_3_6">
                                                <div class="row-fluid" sec:authorize="hasAuthority('PERMISSION_CONTRACT_TEMPLATE')">
                                                    <div class="span12 form"
                                                         sec:authorize="hasAuthority('PERMISSION_CONTRACT_TEMPLATE')">
                                                        <form class="form-horizontal" id=""
                                                              onsubmit="return false;">
                                                            <input type="hidden" id="templet_hidden"/>
                                                            <div class="row-fluid">
                                                                <div class="span12">
                                                                    <div class="control-group">
                                                                        <label class="control-label span1">模版内容</label>
                                                                        <div class="controls span10">
                                                                                        <textarea class="m-wrap span11"
                                                                                                  name="content"
                                                                                                  rows="20"
                                                                                                  id="kindeditor_templet"
                                                                                                  style="width:800px;height:800px;"> </textarea>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row-fluid">
                                                                <label class="control-label span12"
                                                                       style="text-align:left">可用参数:[合同编号] [会员名称] [合同类型]
                                                                    [合同套餐] [套餐备注] [课时数] [签约日期] [合同金额] [起始日期] [到期日期]
                                                                    [业绩所属人] [登记人] [登记时间] [会员卡号] [备注] [家长姓名] [手机号码]
                                                                    [家庭地址] </label>
                                                            </div>
                                                            <hr>
                                                            <div class="row-fluid" sec:authorize="hasAuthority('PERMISSION_CONTRACT_TEMPLATE_EDIT')">
                                                                <div class="span1">
                                                                    <div class="btn-group">
                                                                        <button class="btn green"
                                                                                id="btn_contract_template">
                                                                            保存 <i class="icon-plus"></i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                        </form>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- START 编辑合同套餐的弹框 ALERT-->
            <div class="row-fluid" id="tab2" style="display: none;" sec:authorize="hasAuthority('PERMISSION_CONTRACTPACKAGE_EDIT')">
                <div class="span12">
                    <div class="portlet box blue">
                        <div class="portlet-body form">
                            <form action="#" method="POST" class="form-horizontal"
                                  id="source_edit_form">
                                <div class="form-wizard">
                                    <div class="control-group">
                                        <label class="control-label">合同套餐名称<span
                                                class="required">*</span></label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="package_name"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group ">
                                        <label class="control-label">套餐类型</label>
                                        <div class="controls">
                                            <label class="radio">
                                                <input type="radio" name="package_type" value="1" checked/>
                                                课程套餐
                                            </label>
                                            <label class="radio">
                                                <input type="radio" name="package_type" value="2"/>
                                                托班套餐
                                            </label>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">价格</label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="package_price"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">课时数</label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="lesson_count"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">序号</label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="package_order"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">备注</label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="package_remark"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END EDIT ROLE ALERT-->
            <!-- 编辑支付方式的弹框 ALERT-->
            <div class="row-fluid" id="tab3" style="display: none;" sec:authorize="hasAuthority('PERMISSION_PAYWAY_EDIT')">
                <div class="span12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <form action="#" method="POST" class="form-horizontal"
                                  id="payway_edit_form">
                                <div class="form-wizard">
                                    <div class="control-group">
                                        <label class="control-label">参数<span
                                                class="required">*</span></label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="payway_edit"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">描述</label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="payway_remark"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END EDIT ROLE ALERT-->

            <!-- START 编辑会员卡类型的弹框 ALERT-->
            <div class="row-fluid" id="tab4" style="display: none;">
                <div class="span12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <form action="#" method="POST" class="form-horizontal"
                                  id="membercardtype_edit_form">
                                <div class="form-wizard">
                                    <div class="control-group">
                                        <label class="control-label">类型名称<span
                                                class="required">*</span></label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="type_name"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">商城折扣<span
                                                class="required">*</span></label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="type_discount"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">排序</label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="type_order"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">备注</label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="type_remark"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END EDIT ROLE ALERT-->

            <!-- START EDIT STUDENT SOURCE ALERT-->
            <div class="row-fluid" id="tab5" style="display: none;">
                <div class="span12">
                    <div class="portlet box blue" id="form_wizard_1">
                        <div class="portlet-body form">
                            <form action="#" method="POST" class="form-horizontal"
                                  id="membeype_edit_form">
                                <div class="form-wizard">
                                    <div class="control-group">
                                        <label class="control-label">字段名称<span
                                                class="required">*</span></label>
                                        <div class="controls">
                                            <input type="text" class="span8 m-wrap" id="field_name"/>
                                            <span class="help-inline"></span>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">字段类型<span
                                                class="required">*</span></label>
                                        <div class="controls">
                                            <select data-placeholder="选择字段类型"
                                                    class="chosen-with-diselect span6" tabindex="-1"
                                                    id="field_type">
                                                <option value="1">文本</option>
                                                <option value="2">数字</option>
                                                <option value="3">日期</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label">控件类型</label>
                                        <div class="controls">
                                            <select data-placeholder="选择字段类型"
                                                    class="chosen-with-diselect span6" tabindex="-1"
                                                    id="field_component">
                                                <option value="1">输入框</option>
                                                <option value="2">下拉框</option>
                                                <option value="3">单选框</option>
                                                <option value="4">复选框</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label"></label>
                                        <div class="controls">
                                            <label class="checkbox"> <input type="checkbox"
                                                                            value="1" id="is_require"/> 是否必填
                                            </label> <label class="checkbox"> <input
                                                type="checkbox" value="1" id="is_show"/> 是否显示
                                        </label>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END EDIT ROLE ALERT-->


            <!-- END PAGE CONTENT-->

        </div>

        <!-- END PAGE CONTAINER-->

    </div>

    <!-- END PAGE -->

</div>

<!-- END CONTAINER -->

<!-- BEGIN FOOTER -->

<div class="footer">

    <div class="footer-inner">2013 &copy; Metronic by keenthemes.</div>

    <div class="footer-tools">

			<span class="go-top"> <i class="icon-angle-up"></i>

			</span>

    </div>

</div>

<!-- END FOOTER -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

<!-- BEGIN CORE PLUGINS -->

<script src="media/js/jquery-1.10.1.min.js" type="text/javascript"></script>

<script src="media/js/jquery-migrate-1.2.1.min.js"
        type="text/javascript"></script>

<script src="media/js/bootstrap.min.js" type="text/javascript"></script>


<script src="media/js/jquery.slimscroll.min.js" type="text/javascript"></script>

<script src="media/js/jquery.blockui.min.js" type="text/javascript"></script>

<script src="media/js/jquery.cookie.min.js" type="text/javascript"></script>

<script src="media/js/jquery.uniform.min.js" type="text/javascript"></script>

<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL PLUGINS -->

<script type="text/javascript" src="media/js/select2.min.js"></script>
<script type="text/javascript" src="media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="media/js/DT_bootstrap.js"></script>
<script type="text/javascript" src="media/js/chosen.jquery.min.js"></script>
<script type="text/javascript" src="media/js/jquery.tagsinput.min.js"></script>

<script type="text/javascript" src="media/js/kindeditor/kindeditor-all-min.js"></script>
<script type="text/javascript" src="media/js/kindeditor/lang/zh-CN.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script type="text/javascript" src="media/layer/layer.js"></script>
<script src="media/js/app.js"></script>
<script src="media/js/contractpackage.js"></script>
<script src="media/js/payway.js"></script>
<script src="media/js/membercardtype.js"></script>
<script src="media/js/smallticket.js"></script>
<script src="media/js/contractfield.js"></script>
<script>
    jQuery(document).ready(function () {
        App.init();
        ContractPackage.init();
        PayWay.init();
        MemberCardType.init();
        SmallTicket.init();
        ContractField.init();
    });
</script>
</body>

<!-- END BODY -->

</html>